package com.central.scheduler.spi.task.request;


import com.central.common.entity.FlinkTable;
import com.central.common.enums.EngineType;
import com.central.common.enums.PrivilegeType;
import com.central.common.model.DatasourceInfo;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Tindy
 * @date 2021/10/26
 * @describe SQL Task ExecutionContext
 */
@Getter
@Setter
public class FlinkSqlTaskExecutionContext implements Serializable {


    private List<UdfFuncRequest> udfs;

    private String queue;


    //key is datasourceId.dbname.tablename,value is privilege list
    private Map<String,Set<PrivilegeType>> tablePrivileges;

    private List<Map<String, Set<PrivilegeType>>> needPrivileges;

    private Map<String, FlinkTable> tableMap;

    private String userKtUrl;
}
